﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace MvcMercadoLibre.Helpers
{
    public static class HtmlHelpers
    {
        public static HtmlString Image(this HtmlHelper helper, string path, string name)
        {
            TagBuilder img = new TagBuilder("img");
            img.Attributes.Add("src", string.Format("{0}/{1}",path,name));

            return new HtmlString(img.ToString());        
        }
    }
}